home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1993 / MacHack 1993.toast / MacHack™ 1987-1992 / MacHack™ '90 / Other Stuff / Demos ƒ / Demo AppMaker / Demo AppMaker™ / Demo AppMaker™.rsrc / TmCT_102_App < prev    next >
Encoding:
Text File  |  1990-03-23  |  1.1 KB  |  42 lines

  1. /* %filename% -- application methods */
  2. /* Created %date% %time% by AppMaker */
  3.  
  4. /*    This module overrides the AppMaker-generated code in z%Appname%App.%    %*/
  5. /*    It provides a place for you to add your own code and still be able to    */
  6. /*    generate code for new changes to the user interface.  This module will    */
  7. /*    not be regenerated by AppMaker unless you delete it.  Its superclass,    */
  8. /*    z%Appname%App, may be regenerated to handle user interface changes%        %*/
  9. /*    without losing your hand-coded changes to this module.                    */
  10.  
  11. #include <Commands.h>
  12. #include "ResourceDefs.h"
  13. %for each menu gen includeDialogs%
  14. #include "%Appname%App.h"
  15.  
  16. extern    OSType         gSignature;
  17.  
  18. /*----------*/
  19. void    C%Appname%App::SetUpFileParameters    (void)
  20. {
  21.     inherited::SetUpFileParameters ();
  22.     sfNumTypes = 1;
  23.     sfFileTypes [0] = 'TEXT';
  24.     gSignature = '????';
  25.  
  26. } /* SetUpFileParameters */
  27.  
  28. %for each menu gen doItems.override%
  29. /*----------*/
  30. void    C%Appname%App::DoCommand    (long        theCommand)
  31. {
  32.     switch (theCommand) {
  33.         %for each menu gen handleItems%
  34.         default:
  35.                 inherited::DoCommand (theCommand);
  36.             break;
  37.     } /* switch */
  38.  
  39. } /* DoCommand */
  40.  
  41. /* %filename% */
  42.